import { TOP_CHANNELS, TASK_STATUS } from '@/constants';

export const convertTopChannelCpdeToName = code => {
  const channel = TOP_CHANNELS.find(item => item.id === code);
  return channel?.name || code;
};

export const convertTaskStatusToText = status => {
  const channel = TASK_STATUS.find(item => item.id === status);
  return channel?.name || status;
};
